This is very similar to the previous sample. The difference is that we are now calling
stallForTime()
twice and are printing messages before and after each call.
If you run this, you will see that a single coroutine executes its statements sequentially.
We do not print the "after" messages until after the corresponding stallForTime()
function
has returned.
You can learn more about this in:
Tags: